package com.rpcLearning.server;

import com.rpcLearning.transport.TransportServer;
import com.rpcLearning.transport.impl.HTTPServer;
import com.rpclearnging.codec.Decoder;
import com.rpclearnging.codec.Encoder;
import com.rpclearnging.codec.impl.JsonDecoder;
import com.rpclearnging.codec.impl.JsonEncoder;
import lombok.Data;

/**
 * @author:zyh
 * @Time:2021-03-17-18:42
 * @email:1269231889@qq.com
 * server config
 * 代表使用那个网络模块，如何序列化，监听什么端口
 */
@Data
public class RPCServerConfig {
    private Class<? extends TransportServer> transportClass = HTTPServer.class;
    private Class<? extends Encoder> encoderClass = JsonEncoder.class;
    private Class<? extends Decoder> decoderClass = JsonDecoder.class;
    private int port = 3000;
}
